package com.briup.pts.service;

import com.briup.pts.domain.bean.Disease;
import com.briup.pts.domain.bean.DiseaseRecord;
import com.briup.pts.domain.vo.RecordWithDisease;
import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * @author wy
 * @description
 * @data 2024/11/27  11:36
 */
public interface DiseaseRecordService {
    List<Disease> queryAllDisease();

    PageInfo<RecordWithDisease> pageQueryByCondition(
            Integer drDId,String drStatus,
             @NotNull(message = "分页参数不能为空")
             @Min(value = 1L, message = "当前页面不能小于1") Integer pageNum,
             @Min(value = 1L, message = "页面大小不能小于1")
             @NotNull(message = "分页参数不能为空") Integer pageSize);

    void deleteById(Integer drId);

    void deleteByIdAll(@NotEmpty(message = "没有要删除的质检报告") List<Integer> ids);

    void saveOrUpdate(DiseaseRecord diseaseRecord);
}
